﻿using System.ComponentModel.DataAnnotations;

namespace OperationPlugins.Validators.DataAnnotations
{
    public interface IUsePluginValidatorsAttributeSkipValidation
    {
        /// <summary>
        /// Decides whether the plugins validation should be skipped.
        /// </summary>
        /// <param name="value">The value to validate.</param>
        /// <param name="validationContext">Describes the context in which a data annotations validation check is performed.</param>
        /// <returns>True if the plugins validation should be skipped, otherwise false.</returns>
        bool SkipValidation(object value, ValidationContext validationContext);        
    }
}